package com.itheima.Homework.Demo1;
/*
* 使用FileUtils工具类，完成文件复制、文件夹复制、获取文件夹大小(sizeOf方法)
* 、删除文件夹（deleteDirectory方法）操作
* */

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {

//        FileUtils.copyFile(new File("E:\\ideaProject\\basic-code\\day13\\resource\\a.txt"),new File("E:\\ideaProject\\basic-code\\day13\\resource\\b.txt"));

//        FileUtils.copyDirectory(new File("E:\\ideaProject\\basic-code\\day13\\resource"),new File("E:\\ideaProject\\basic-code\\day13\\ress"));

//        long l = FileUtils.sizeOf(new File("E:\\ideaProject\\basic-code\\day13\\resource"));
//        System.out.println(l);

//        FileUtils.deleteDirectory(new File("E:\\ideaProject\\basic-code\\day13\\resource"));
    }
}
